package com.taotao.sso.service;

import com.taotao.pojo.User;
import com.taotao.util.TaotaoResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author hong.zheng
 * @Description
 * @date 2018-09-25-11:07
 **/
public interface UserService {

    TaotaoResult checkData(String content, Integer type);

    TaotaoResult createUser(User user);

    TaotaoResult userLogin(String username, String password, HttpServletRequest request, HttpServletResponse response);

    TaotaoResult getUserByToken(String token) throws Exception;
}
